package com.isoft.c2team3service2.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.isoft.c2team3service2.entity.Artist;
import com.isoft.c2team3service2.entity.ArtistEnumDTO;

import java.util.List;

public interface ArtistService extends IService<Artist> {
    // 根据姓名模糊查询艺人
    List<Artist> searchArtistsByName(String name);


    List<Artist> getArtistsByUserFollows(Integer userId);
    boolean followArtist(Integer artistId);
    boolean unfollowArtist(Integer artistId);
    boolean isFollowing(Integer artistId);

    List<ArtistEnumDTO> searchArtists();

    /**
     * 根据艺人名称模糊查询艺人ID
     * @param artistName 艺人名称关键词
     * @return 匹配的艺人ID，无匹配则返回null
     */
    Integer getArtistIdByLikeName(String artistName);
}